//引入js
var libs = ['js/resize.js','js/drag.js','vue/vue.js','js/components.js','/js/frame.js','/js/jquery.js'];
var base = './design/';
var districtId='1';//小区ID
var parkId='1';//车库的ID
var operator=123;
var token='';
var districtName='';
libs.forEach(lib => {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = base + lib;
    document.body.appendChild(script);
});
function GetQueryString(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	var url = decodeURI(window.location.search);
	var r = url.substr(1).match(reg);
	if (r != null) return unescape(r[2]);
	return null;
}
window.onload = function () {
    //初始化
	districtId=GetQueryString('districtId');
	parkId=GetQueryString('parkId');
	token=GetQueryString('token');
	districtName=GetQueryString('districtName');
    frameInit(districtId,parkId,token,districtName);
}